package cn.jbolt.ndemo.service;

import cn.jbolt.ai.app.dao.AiAppMapper;
import cn.jbolt.ai.app.entity.AiApp;
import cn.jbolt.ai.klb.FileState;
import cn.jbolt.ai.klb.FileType;
import cn.jbolt.ai.klb.service.AiDocService;
import cn.jbolt.util.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SmartTalkServiceImpl extends ServiceImpl<AiAppMapper, AiApp> implements SmartTalkService{





    @Autowired
    private AiDocService docService;


    @Override
    public Result getDefaultQuestion(Long klbId) {
      return Result.success(docService.listByLimit(10, klbId, FileType.QA.getCode(), FileState.EMBEDDING_SUCCESS.getCode()));
    }
}
